<?php include_partial('default/header') ?>
<?php use_helper('messageAlert') ?>

<div id="all_content">
    <!-- ADMIN VIEW -->
    <?php if ($sf_user-> isAdmin()): ?>
    <div id="tab_admin">
        <div class="border">
            <p class="title"><?php echo __("'FSmartShop' Admin") ?></p>
            <?php
                echo get_current_message(true);
    //			echo "<div class='message-yellow'>".__("This section is visible only to your Page's admins.")."</div>";
            ?>
            <div>
                <a href="<?php echo fb_url_for('@backoffice_list', true) ?>" target="_top" class="FB_button FB_button no-deco">
                  <?php echo __('Go to admin section') ?>
                </a>
                &nbsp;
                <a href="<?php echo fb_url_for('@backoffice_new', true) ?>" target="_top" class="FB_button FB_buttonGreen">
                  <?php echo __('Post new job') ?>
                </a>
            </div>
            <div id ="job_setting_content" class="content"></div>
            <div class="clb"></div>
        </div><!-- .border -->
    </div><!-- #tab_admin -->
    <?php endif ?>

    <div id="page_content">
    <?php echo $sf_data->getRaw('sf_content') ?>
    </div>

    <?php include_partial('default/footer', array('frontoffice' => 1)) ?>
    <div class="clb"></div>
</div><?php /* end #allContent */ ?>
  </body>
</html>
